package com.hotel.dao;

import com.hotel.pojo.Home;
import com.hotel.pojo.Rooms;
import org.springframework.stereotype.Component;

import java.util.ArrayList;

@Component
public interface HomeMapper {

        int addHome(Home home);

        int deleteHomeById(int id);

        int updateHomeById(Home home);

        Home queryHomeById(Integer  id);

        ArrayList<Home> queryAllHome();

        Home queryHomeByNum(String num);

        int updateH_TypeById(Home home);

        //TODO 入住登记测试使用
        ArrayList<Home> queryHomeByStatus(String status);

        int updateHomeByhomeId(Home home);
        int updateHomeByhomebyId(Home home);
}

